<extend name="Public/base"/>
<block name="body">
    <div class="main-title">
        <h2>{$_title}</h2>
    </div>
    <div  class="form-horizontal">
    	<div class="form-item">
            <label class="item-label">合同代码：<span class="check-tips">{$contract.code|default=''}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">合同名称：<span class="check-tips">{$contract.name|default=''}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">合同标题：<span class="check-tips">{$contract.title|default=''}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">合同类型：<span class="check-tips">{$contract.type_text|default=''}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">创建时间：<span class="check-tips">{:date('Y-m-d H:i:s', $contract['create_time'])}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">更新时间：<span class="check-tips">{:date('Y-m-d H:i:s', $contract['update_time'])}</span></label>
        </div>
        <div class="form-item">
            <div class="item-label">合同状态：<span class="check-tips">{$contract.status_text}</span></div>
        </div>
        <div class="form-item">
            <label class="item-label">合同内容<span class="check-tips"></span></label>
        	<div class="controls">
                <div style="height:500px;" class="div-desc" >{$contract.content|default=''}</div>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">更新日志<span class="check-tips"></span></label>
        	<div class="controls">
                <div style="height:200px;" class="div-desc" >
					<foreach name="log" item="val" key="key">
						<h3>{:date('Y-m-d H:i:s', $val['update_time'])}　{$val['admin_name']}</h3>
						<div style="margin-bottom:10px;">{$val.admin_note}</div>
					</foreach>
                </div>
            </div>
        </div>
        <div class="form-item">
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Contract/contractList')}');
    </script>
</block>
